Yesterday, I found that there was a problem with the server communication concurrency, so I hope to add the write debugging information output at the communication layer. At that time, I first thought of codesite, which is commonly used. However,
Document directory
Content directory
Applicable scenarios of outputdebugstring:At the same time, multiple application processes (producers) can send debugging information. Only one debugging process (consumer, egdebugview, and vs2005) can be
In Win32ProgramYou can use the outputdebugstring function to output debugging information. The output result can be viewed in the vsintegrated environment, or the result can be captured using the tool dbgview.exe. The original form of the function
Learning programming started from Dos. after a certain period of time of tc2.0, it became a bad habit of using printf to output variable values for debugging. When I got to write the window program, I encountered some trouble.The window program does
During software development, what is the most time? It is actually debugging the code. After all, human thinking is from simple to complex processes, and natural cognitive processes are also from simple to complex. Therefore, when developing
When debugging some programs, print them with outputdebugstring, and print them with debugview output, for example, a Windows service program. However, debugview outputs printed information of any Windows software program, such as thunder and
A strong Win32 developer may
Outputdebugstring ()API functions are more familiar than debugger, which enables your program to communicate with the debugger. It is easier than creating a log file and can be used by all "real" debuggers. The mechanism
OutputDebugString use can only input a parameter, in the actual use of a great inconvenience, the following transformation of the function is very good, how to output their own set.
void outputdebugprintf (const char * stroutputstring,...){Char
Debug view cannot display Outputdebugview.The registry value needs to be set under the Win7 operating system:Computer--> hkey_local_machine-->system->currentcontrolset-->control-->session ManagerCreate a new key value, type DWORDValue Name:debug
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.